//
//  TempViewController.swift
//  sinaweibo
//
//  Created by mac on 15/11/16.
//  Copyright © 2015年 mac. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "返回", style: .Plain, target: self, action: "back")
        title = "\(self.navigationController?.childViewControllers.count)"
        view.backgroundColor = UIColor.randomColor()
    }

    override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
        
        let temp = TempViewController()
        view.NavController()?.pushViewController(temp, animated: true)
    }

//    @objc private func back () {
//            navigationController?.popViewControllerAnimated(true)
//    }
}
